import Common from "../Common";

const {ccclass, property} = cc._decorator;

@ccclass
export default class TeamItem extends Common {


    @property(cc.Label)
    nameLabel: cc.Label

    @property(cc.Label)
    levelLabel: cc.Label

    @property(cc.Label)
    numberLabel: cc.Label

    @property(cc.Label)
    amountLabel: cc.Label

    @property(cc.Label)
    regTimeLabel: cc.Label


    public setUserName(name: string) {
        this.nameLabel.string = name;
    }

    public setLevelName(levelName: string) {
        this.levelLabel.string = levelName;
    }

    public setNumber(number: string | number) {
        this.numberLabel.string = `${number}人`;
    }

    public setAmounts(amounts: string | number) {
        this.amountLabel.string = `${amounts}`;
    }


    public setTime(time: string) {
        this.regTimeLabel.string = `注册：${time}`;
    }

}
